package cn.edu.cdcas.service;

import cn.edu.cdcas.entity.Student;
import cn.edu.cdcas.mapper.StudentMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("studentService")
public class StudentService {

    @Resource
    private StudentMapper studentMapper;

    public Student getById(int id) {
        return studentMapper.getById(id);
    }

    public Student queryByStudentNo(String studentNo, String schoolNo) {
        return studentMapper.queryByStudentNo(studentNo, schoolNo);
    }

    public void updateTime(Student student) {
        studentMapper.updateTime(student);
    }

    public void update(Student student) {
        studentMapper.update(student);
    }

    public void updateLoginState(Student student) {
        studentMapper.updateLoginState(student);
    }
}
